import {Home} from "../../models/home";

Component({
    properties: {
        show: Boolean,
        max: String
    },
    data: {
        step: 1
    },
    methods: {
        onStepChange(e) {
            this.data.step = e.detail
        },

        onConfirm() {
            this.triggerEvent('step', {count: this.data.step})
            this.onCloseWindow()
        },

        onCloseWindow() {
            this.setData({show: false})
        }
    }
});
